import Vue from 'vue';
import App from './App.vue';
import router from './router';
import 'vant/lib/icon/local.css';
import '@/assets/scss/global.scss';
import '@/assets/scss/iconfont/iconfont.css';

import VueCountdown from '@chenfengyuan/vue-countdown';

import filters from '@/filter';
import store from '@/vuex/store' // 引入store

import vSelect from 'vue-select';
Vue.component('v-select', vSelect);
import "vue-select/src/scss/vue-select.scss";

//vue-viedeo-player视频播放器
import VideoPlayer from 'vue-video-player';
require('video.js/dist/video-js.css');
require('vue-video-player/src/custom-theme.css');
Vue.use(VideoPlayer);

//swiper滑动组件     异形slide用于商城首页
import vueSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css';
import VueTouch from 'vue-touch'
Vue.use(VueTouch, { name: 'v-touch' })
Vue.use(vueSwiper)

Vue.component(VueCountdown.name, VueCountdown);
Vue.use(filters);
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: '2h9wN9GgNpKzrBPmvXFdBtApasaB5cmx' //这个地方是官方提供的ak密钥
})

import { Lazyload, Icon, Cell, CellGroup, loading, Button, Toast, Picker } from 'vant';
Vue.use(Icon);
Vue.use(Picker);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(loading);
Vue.use(Button);
Vue.use(Toast);
Vue.use(Lazyload, {
  preLoad: 1.3,
  error: require('@/assets/images/newpen.jpg'),
  loading: require('@/assets/images/newpen.jpg'),
  attempt: 1,
  lazyComponent: true
});


Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
